import request from '../utils/request'

//获取点赞、粉丝数量
export function getTalentInfo() {
  return request({
    url: '/member/talent/getInfo',
    method: 'get',
  })
}

export function getInfo() {
  return request({
    url: '/member/getInfo',
    method: 'get',
  })
}
export function memberList(params) {
  return request({
    url: '/member/memberList',
    method: 'get',
    params: params
  })
}

export function lockSysUser(params) {
  return request({
    url: '/member/lockSysUser',
    method: 'post',
    params: params
  })
}

export function createQrcode() {
  return request({
    url: '/member/createQrcode',
    method: 'get'
  })
}

export function scaner(params){
  return request({
    url: '/member/card_bill/scaner',
    method: 'get',
    params:params
  })
}
//文章点赞接口
export function articleLaudSave(data) {
  return request({
    url: '/member/articleLaud/save',
    method: 'post',
    data: data
  })
}

/************************** 景区收藏相关接口 \/*********************/ 
// 保存我收藏的景区
export function scenicFavoritesSave(data) {
  return request({
    url: '/member/scenicFavorites/save',
    method: 'post',
    data: data
  })
} 
/**
 * 批量删除我收藏的景区
 * @param {String} ids ids用逗号拼接
 */
export function scenicFavoritesDel(ids) {
  return request({
    url: `/member/scenicFavorites/del/${ids}`,
    method: 'post'
  })
} 
// 分页查询我收藏的景区
export function scenicFavoritesList(params) {
  return request({
    url: '/member/scenicFavorites/list',
    method: 'get',
    params: params
  })
} 
/************************** 景区收藏相关接口 /\*********************/ 



//保存我关注的达人
export function talentFollowSave(data) {
  return request({
    url: '/member/talentFollow/save',
    method: 'post',
    data: data
  })
} 

//取消关注达人
export function talentFollowDel(data) {
  return request({
    url: `/member/talentFollow/del`,
    method: 'post',
    data:data
  })
} 




